//
//  ContentModel.m
//  Flava
//
//  Created by Ug-Code on 13-8-25.
//  Copyright (c) 2013年 UgCode. All rights reserved.
//

#import "NoteModel.h"

@implementation NoteModel

@synthesize
titleText,
contentText,
createDate = _createDate,
reviseDate = _reviseDate,
tag,
photoNameArray,
photoPathArray,
videoName,
videoPath,
VoiceName,
VoicePath,
weather,
mood,
theme;

- (id)init
{
    self = [super init];
    if (self) {
//      titleText = [[NSString alloc] init];
//		contentText = [[NSString alloc] init];
//		createDate = [[NSDate alloc] init];
//		reviseDate = [[NSDate alloc] init];
		tag = [[NSMutableSet alloc] init];
		photoNameArray = [[NSMutableArray alloc] init];
		photoPathArray = [[NSMutableArray alloc] init];
//		videoName = [[NSString alloc] init];
//		videoPath = [[NSString alloc] init];
//		VoiceName = [[NSString alloc] init];
//		VoicePath = [[NSString alloc] init];
//		weather = [[NSString alloc] init];
//		mood = [[NSString alloc] init];
		theme = [[NSMutableSet alloc] init];
    }
    return self;
}

- (void)setReviseDate:(NSDate *)reviseDate
{
	if (_reviseDate != reviseDate) {
		_reviseDate = reviseDate;
		// 创建日期赋值一次
		if (_createDate == nil) {
			_createDate = reviseDate;
		}
	}
}

@end
